<style type="text/css">
td{
    text-align: center;    
}
</style>

<form id="pagerForm" method="post" action="index.php?c=Goodsorders&a=lists">
    <!-- <input type="hidden" name="orderField" value="{$pages.currentPage}" /> -->
</form>

<link rel="stylesheet" type="text/css" href="css/default1.css" />
<!-- Edit Below -->
<script type="text/javascript" src="./js/jquery.wheelmenu.js"></script>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link href='css/elusive-webfont.css' rel='stylesheet' type='text/css'>
<div class="pageHeader">
    <form rel="pagerForm" onsubmit="return navTabSearch(this);" action="index.php?c=Goodsorders&a=lists" method="post">
        <div class="searchBar">
            <div class="subBar">
                <ul>
                    <li>
                    	<div class="buttonActive">
    	                    <div class="buttonContent">
    	                    	<button type="submit">刷新页面</button>
                                <li><a class="button" href="index.php?c=Goodsorders&a=search" target="dialog" mask="true" title="查询框"><span>高级检索</span></a></li>
    	                    </div>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
    </form>
</div>

<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
            <li>
                <a class="delete" href="index.php?c=Feedback&a=del" onclick="del()" callback="Delcb" target="ajaxTodo" title="确定要删除吗？" warn="请选择一个商品">
                    <span>删除</span>
                </a>
                
            </li>
        </ul>
    </div>

    <div id="w_list_print">
    <!-- <form id="tables" action="index.php?c=Present&a=presentCheck" method="post" accept-charset="utf-8"> -->
        <table class="list" width="100%" targetType="navTab" asc="asc" desc="desc" layoutH="116">
            <thead>
            <tr>
                <th align="center" width="10" ><input class="checkedAll" type="checkbox" value="{$list.id}"/></th>
                <!-- <th align="center" width="100" orderField="id">订单号</th> -->
                <th align="center" width="100">用户名</th>
                <th align="center" width="100">反馈内容</th>
                <th align="center" width="100">反馈时间</th>
                <!-- <th align="center" width="100">操作</th> -->
            </tr>
            </thead>
 
            <tbody id="Fares">
                <foreach name="list" item="list">
                    <tr target="sid_user" rel="{$list.id}">
                        <td><input type="checkbox" name="review[]" value="{$list.id}"></td>
                        <td>{$list.name}</td>
                        <td>{$list.content}</td>
                        <td>{$list.addtime}</td>
                    </tr>  
                </foreach>
            </tbody>
        </table>
        <input type="hidden" name='checking' />
    <!-- </form> -->
    </div>

    <div class="panelBar" >
        <div class="pages">
            <span>显示</span>
            <select name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
                <option value="{$pages.numPerPage}">{$pages.numPerPage}</option>
                <option value="50">50</option>
                <option value="100">100</option>
                <option value="200">200</option>
            </select>
            <span>条，共{$pages.total}条</span>
        </div>
        <!-- totalCount商品总数  pageNumShown页码  currentPage当前页码  numPerPage当前页条数-->
        <div class="pagination" targetType="navTab" totalCount="{$pages.total}" numPerPage="{$pages.numPerPage}" pageNumShown="10" currentPage="{$pages.currentPage}"></div>

    </div>

</div>
<script type="text/javascript">
    $('.checkedAll').on({
        change:function(){
          $(this).prop('checked')?$(":checkbox[name='review[]']").prop('checked',true):$(":checkbox[name='review[]']").prop('checked',false);
        },
    });

    function del() {
        
        var chk_value = [];
        $('input[name="review[]"]:checked').each(function(){ 
            chk_value.push($(this).val()); 
        });

        $.ajax({
          type:"POST",
          url: "index.php?c=Feedback&a=del",
          data: {"id":chk_value},
          dataType:'json',
          success:function(data){

          }
        });

    }
</script>